package cn.zl.common.manage.data;

import cn.zl.ZLM.structure.MK_PROXY_PLAYER;
import cn.zl.model.StreamProxy;

public class StreamProxyData extends StreamProxy {

    private MK_PROXY_PLAYER mkProxyPlayer;

    public StreamProxyData(StreamProxy proxy) {
        copy(proxy);
    }

    private void copy(StreamProxy proxy){
        this.proxyId = proxy.getProxyId();
        this.app = proxy.getApp();
        this.stream = proxy.getStream();
        this.url = proxy.getUrl();
        this.retryCount = proxy.getRetryCount();
        this.rtpType = proxy.getRtpType();
        this.timeoutSec = proxy.getTimeoutSec();
        this.enableAudio = proxy.isEnableAudio();
        this.autoClose = proxy.isAutoClose();
    }

    public MK_PROXY_PLAYER getMkProxyPlayer() {
        return mkProxyPlayer;
    }

    public void setMkProxyPlayer(MK_PROXY_PLAYER mkProxyPlayer) {
        this.mkProxyPlayer = mkProxyPlayer;
    }

}
